/*
 * @Author: fredlee
 * @Date:   2017-05-23 10:16:11
 * @Last Modified by: mikey.zhaopeng
 * @Last Modified time: 2017-12-13 22:39:06
 */
//我要卖-卖家订单中心 组件 头部 无路由页面
const Header = resolve => {
  require.ensure(['components/Header.vue'], () => {
    resolve(require('components/Header.vue'));
  }, 'Home');
};
//我要卖-卖家订单中心 父组件 无实际显示路由页面
const MemberSeller = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/memberSeller/MemberSeller.vue'));
  }, 'seller');
}
//我要卖-卖家订单中心页面
const MemberSellerHome = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/memberSeller/MembersellerHome.vue'));
  }, 'seller');
}
//我要卖-卖家订单中心页面-手机端发布的商品页面
const SellerGoodsListOfMobile = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/memberSeller/sellerGoodsListMobile/SellerGoodsListofMobile.vue'));
  }, 'seller');
}
//手机端发布的商品进行编辑页面
const EditAccountGoods = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/memberSeller/sellerGoodsListMobile/editAccountGoods.vue'));
  }, 'seller');
}
//我要卖-卖家订单中心页面-电脑端发布的手游商品
const SellerGoodsListOfPc = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/memberSeller/sellerGoodsListPc/SellerGoodsListofPc.vue'));
  }, 'seller');
}
//电脑端发布的手游商品进行编辑页面
const EditSellerGoodsPc = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/memberSeller/sellerGoodsListPc/editSellerGoodsPc.vue'));
  }, 'seller');
}

// const OrderListMobile = resolve => {
//   require.ensure([], () => {
//     resolve(require('components/my/memberSeller/orderListMobile/OrderListMobile.vue'));
//   }, 'seller');
// }

//手机端订单详情页面
const OrderMobileDetail = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/memberSeller/orderListMobile/OrderMobileDetail.vue'));
  }, 'seller');
}
//PC端订单详情页面
const OederPcDetail = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/memberSeller/orderListMobile/OederPcDetail.vue'));
  }, 'seller');
}
//金币订单详情页面
const OrderMobileCoinDetail = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/memberSeller/orderListMobile/OrderMobileCoinDetail.vue'));
  }, 'seller-old');
}
const OrderMobileCoinDetailNew = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/memberSeller/orderListMobile/OrderMobileCoinDetailNew.vue'));
  }, 'seller');
}


// const OrderListPC = resolve => {
//   require.ensure([], () => {
//     resolve(require('components/my/memberSeller/orderListPc/OrderListPC.vue'));
//   }, 'seller');
// }


const OrderPCDetail = resolve => {
  require.ensure([], () => {
    resolve(require('components/my/memberSeller/orderListPc/OrderPcDetail.vue'));
  }, 'seller');
}

// 我是卖家-订单管理页面
const SellerOrderCenter = resolve => {
    require.ensure([], () => {
        resolve(require('components/my/memberSeller/orderCenter/SellerOrderCenter.vue'));
    }, 'seller');
}

export const memberSellerRoute =

  {
    path: '/vue/memberseller',
    components: {
      default: MemberSeller,
    },
    children: [
      {
        path: '',
        name: 'MemberSeller',
        components: {
          default: MemberSellerHome,
          'memberseller-header': Header
        }
      },
      {
        path: '/vue/memberseller/sellergoodsListofMobile',
        name: 'SellerGoodsListOfMobile',
        components: {
          default: SellerGoodsListOfMobile,
          'memberseller-header': Header,
        }
      },
      {
        path: '/vue/memberseller/editaccountGoods',
        name: 'EditAccountGoods',
        components: {
          default: EditAccountGoods,
          'memberseller-header': Header,
        }
      },
      {
        path: '/vue/memberseller/sellerGoodsListofPc',
        name: 'SellerGoodsListOfPc',
        components: {
          default: SellerGoodsListOfPc,
          'memberseller-header': Header,
        }
      },
      {
        path: '/vue/memberseller/editSellerGoodsPc',
        name: 'EditSellerGoodsPc',
        components: {
          default: EditSellerGoodsPc,
          'memberseller-header': Header,
        }
      },
      // {
      //   path: '/vue/memberseller/orderListofMobile',
      //   name: 'OrderListMobile',
      //   components: {
      //     default: OrderListMobile,
      //     'memberseller-header': Header,
      //   }
      // },
      // {
      //   path: '/vue/memberseller/orderlistofPc',
      //   name: 'OrderListPC',
      //   components: {
      //     default: OrderListPC,
      //     'memberseller-header': Header,
      //   }
      // },
      {
        path: '/vue/memberseller/ordermoboleDetail',
        name: 'OrderMobileDetail',
        components: {
          default: OrderMobileDetail,
          'memberseller-header': Header,
        }
      },
      {
        path: '/vue/memberseller/OederPcDetail',
        name: 'OederPcDetail',
        components: {
          default: OederPcDetail,
          'memberseller-header': Header,
        }
      },
      {
        path: '/vue/memberseller/ordermoboleCoinDetail',
        name: 'OrderMobileCoinDetail',
        components: {
          default: OrderMobileCoinDetail
        }
      },
      {
        path: '/vue/memberseller/ordermoboleCoinDetailNew',
        name: 'OrderMobileCoinDetailNew',
        components: {
          default: OrderMobileCoinDetailNew
        }
      },
      {
        path: '/vue/memberseller/orderpcDetail',
        name: 'OrderPCDetail',
        components: {
          default: OrderPCDetail,
          'memberseller-header': Header,
        }
      },
        {
            path: '/vue/memberseller/SellerOrderCenter',
            name: 'SellerOrderCenter',
            components: {
                default: SellerOrderCenter,
                'memberseller-header': Header,
            }
        },
    ],
    meta: {isPublish: true, requireAuth: true}
  };
